﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">   
    <title>login</title>   
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>无标题页</TITLE>
 -->
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<STYLE type=text/css> 
{
	FONT-SIZE: 12px
}
#menuTree A {
	COLOR: #566984; TEXT-DECORATION: none
}
</STYLE>

<SCRIPT src="./Left.files/TreeNode.js" type=text/javascript></SCRIPT>
<SCRIPT src="./Left.files/Tree.js" type=text/javascript></SCRIPT>
<META content="MSHTML 6.00.2900.5848" name=GENERATOR>

</HEAD>
<BODY 
style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(./images/bg2.gif); BACKGROUND-REPEAT: repeat-x" onload="a('${logon.ERight}')">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%">
  <TBODY>
  
    <TR>
      <TD width=10 height=29><IMG src="./Left.files/bg_left_tr2.gif"></TD>
      <TD 
    style="FONT-SIZE: 18px; BACKGROUND-IMAGE: url(./images/bg_left_tc2.gif); COLOR: white; FONT-FAMILY: system">Main 
        Menu</TD>
      <TD width=10><IMG src="./Left.files/bg_left_tl2.gif"></TD>
    </TR>
    
    <TR>
      <TD style="BACKGROUND-IMAGE: url(./images/bg_left_ls.gif)"></TD>
      <TD id=menuTree 
    style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px; HEIGHT: 100%; BACKGROUND-COLOR: white" 
    vAlign=top>
      </TD>
      <TD style="BACKGROUND-IMAGE: url(./images/bg_left_rs.gif)"></TD>
    </TR>
    
    <TR>
      <TD width=10><IMG src="./Left.files/bg_left_bl.gif"></TD>
      <TD style="BACKGROUND-IMAGE: url(./images/bg_left_bc.gif)"></TD>
      <TD width=10><IMG 
src="./Left.files/bg_left_br.gif"></TD>
    </TR>
    
  </TBODY>
</TABLE>
<SCRIPT type=text/javascript>

	//定义一个show方法 用来根据五位数字来决定列表的形态
	function a(value){
		var num = ""+value;
		var n1=num[0];
		var n2=num[1];
		var n3=num[2];
		var n4=num[3];
		var n5=num[4];
		var tree = null;var root = new TreeNode('系统菜单');
		if(n1>0){
			var fun1 = new TreeNode('机房管理');
			var fun2 = new TreeNode('机房管理', './room/RoomListAction','tree_node.gif', null, 'tree_node.gif', null);
			fun1.add(fun2);
			root.add(fun1);
		}
		if(n2>0){
			var fun5 = new TreeNode('部门管理');
			var fun6 = new TreeNode('部门列表', './dept/deptAction.action', 'tree_node.gif', null, 'tree_node.gif', null);
			fun5.add(fun6);
			var fun7 = new TreeNode('部门操作', './dept/dept2Action.action', 'tree_node.gif', null, 'tree_node.gif', null);
			fun5.add(fun7);
			root.add(fun5);
		}
		if(n3>0){
			var fun9 = new TreeNode('人员管理');
			var fun10 = new TreeNode('查询员工', './emp/empSearchPageAction', 'tree_node.gif', null, 'tree_node.gif', null)
			fun9.add(fun10);
			var fun11 = new TreeNode('员工列表', './emp/empAction', 'tree_node.gif', null, 'tree_node.gif', null);
			fun9.add(fun11);
			root.add(fun9);
		}
		if(n4>0){
			var fun13 = new TreeNode('日志管理');
			var fun14 = new TreeNode('日志查询', 'logAction', 'tree_node.gif', null, 'tree_node.gif', null);
			fun13.add(fun14);
			root.add(fun13);
		}
		if(n5>0){
			var fun16 = new TreeNode('权限管理');
			var fun17 = new TreeNode('角色管理', './role/RoleAction', 'tree_node.gif', null, 'tree_node.gif', null);
			fun16.add(fun17);
			var fun18 = new TreeNode('人员列表', './role/EmpRoleAction', 'tree_node.gif', null, 'tree_node.gif', null);
			fun16.add(fun18);
			root.add(fun16);
		}
		tree = new Tree(root);
		tree.show('menuTree');
	}

</SCRIPT>
</BODY>
</HTML>
